package br.com.massai.model.exceptions;

public enum ErrorCore implements GenericCore {
	
	ERROR_DUPLICATE("error.duplicate"),
	ERROR_UNDEFINED_PROPERTY("error.undefined.property"),
	ERROR_SAVE("error.save"),
	ERROR_UPDATE("error.update"),
	ERROR_DELETE("error.delete"),
	ERROR_DELETE_RESTRICTION("error.delete.restriction"),
	ERROR_INVALID_LOGIN("error.invalid.login"),
	ERROR_LOGIN("error.login"),
	ERROR_INVALID_PASSWORD("error.invalid.password"),
	ERROR_SEND_EMAIL("error.send.email"),
	ERROR_RESET_PASSWORD("error.reset.password"),
	ERROR_GENERATE_REPORT("error.generate.report"),
	ERROR_GENERATE_PDF("error.generate.pdf"),
	ERROR_FILE_NOT_FOUND("error.file.not.found"),
	ERROR_INEXISTENT_RECORD("error.inexistent.record"),
	ERROR_SYSTEM("error.system"),
	ERROR_WRITE_FILE("error.write.file"),
	ERROR_COPY_FILE("error.copy.file"),
	ERROR_LOAD_FILE("error.load.file"),
	ERROR_UNZIP_FILE("error.unzip.file"),
	ERROR_REQUIRED_FIELD("error.required.field"),
	ERROR_UNEXPECTED("error.unexpected"),
	ERROR_GET_RECORD("error.get.record"),
	ERROR_ILLEGAL_ACESS("error.illegal.acess"),
	ERROR_ILLEGAL_ARGUMENT("error.illegal.argument"),
	ERROR_DATABASE_CONNECTION("error.database.connection"),
	
	ERROR_NON_UNIQUE_RESULT("error.non.unique.result"),
	
	ERROR_PAYROLL_DUPLICATE("error.payroll.duplicate"),
	ERROR_DELETE_SPREADSHEET_APROVED("error.delete.spreadsheet.aproved"),

	ERROR_BUSY_DEPARTMENT("error.busyDepartment"),
	ERROR_VALUE_MUST_BE_GREATER_THAN_ZERO("error.valueMustBeGreaterThanZero"),
	ERROR_IN_CALCULATING_INCREASE("error.inCalculatingIncrease"),
	ERROR_SERVICE_ALREADY_ADDED("error.service.already.added"),
	ERROR_LOADING_COLLABORATORS("error.loading.collaborators"),
	ERROR_COLLABORATOR_DUPLICATE("error.collaborator.duplicate"),
	ERROR_LOADING_DEPARTMENTS("error.loading.deparments"),
	ERROR_LOADING_GROUPITEM("error.loading.groupItems"),
	ERROR_LOADING_BUDGEITEM("error.loading.budgetItems"),
	ERROR_DEPARTMENT_BLOCKED("error.department.blocked"),
	ERROR_SPREADSHEET_WITHOUT_RELEASES("error.spreadsheet.without.releases"),
	ERROR_SPREADSHEET_APROVED("error.spreadsheet.aproved"),
	ERROR_LOADING_ENTRY("error.loading.entries"),
	ERROR_PENDING_RELEASES("error.pending.releases"),
	ERROR_SUM_LESS_THAN_HUNDRED_PERCENT("error.sum.less.than.hundred.percent"),
	ERROR_SUM_NOT_EXCEED_HUNDRED("error.sum.not.exceed.hundred"),
	ERROR_QUANTITY_MUST_GREATER_THAN_ZERO("error.quantity.must.greater.than.zero"),
	ERROR_GRATIFICATION_MUST_GREATER_THAN_ZERO("error.gratification.must.greater.than.zero"),
	ERROR_GET_EMPLOYEE("error.get.employee"),
	ERROR_THERE_IS_NO_OPEN_SHEET("error.there.is.no.open.sheet"),
	ERROR_CLONEABLE("error.cloneable");

	private String code;
	
	private ErrorCore(String code) {
		this.code = code;
	}

	@Override
	public String getCode() {
		return this.code;
	}
}
